package com.itheima.mapper;

import com.itheima.pojo.User;
import com.itheima.queryParams.UserQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getUserList(UserQueryParam userQueryParam);

    long count(UserQueryParam userQueryParam);


    //用户登录查询
    @Select("select * from user where username=#{username} and password=#{password}")
    User getUserLogin(User user);
}
